import React from "react";

// 获取信息列表
export const requestMessageList = (params) => {
  const { $http } = React;
  return $http.get("message", { params }).then((res) => res);
};

// 删除信息
export const requestMessageDelete = (params) => {
  const { $http } = React;
  return $http.delete("message/delete", { data: params }).then((res) => res);
};

// 修改状态信息
export const requestMessageStatus = (params) => {
  const { $http } = React;
  return $http.put("message/read", params).then((res) => res);
};
